<?php
require_once __Dir__ . '/../simpletest/autorun.php';
require_once __Dir__ . '/../../Core/BonoHomeCore/BonoHomeCoreService.php';

class TestOfAddCategory extends UnitTestCase 
{
	/*
		Check a correct add answer
	*/
    function testCorrectAddCategory() 
	{
		$accountName = "test account"; ;
		$newCategoryName = "Category test";
		$parentCategory = 0;
		
		//get documents from root
		$service = new BonoHomeCoreService();
		$response = $service->addCategory($accountName, $newCategoryName, $parentCategory);
		$this->assertTrue($response->response->Id > 0);
    }
	
	
	/*
		Check an invalid add answer
	*/
    function testInvalidAddCategory() 
	{
		//$this->assertTrue(true);
    }
}
?>